package com.jolink.omiis.wechat.outer;

import com.jolink.omiis.wechat.crypt.aes.AesException;
import com.jolink.omiis.wechat.message.type.UserType;

/**
 * 加密、解密
 * 
 * @author WangYanqing
 *
 */
public interface ICrypt {

	String verifyMsgValid(String msgSignature, String timeStamp, String nonce, String echoStr) throws AesException;

	/**
	 * 加密
	 * 
	 * @return
	 * @throws AesException
	 */
	String encrypt(String replyMsg, String timeStamp, String nonce) throws AesException;

	/**
	 * 解密
	 * 
	 * @return
	 * @throws AesException
	 */
	String decrypt(String msgSignature, String timeStamp, String nonce, String postData,UserType mt2) throws AesException;

}
